package com.xjrh.traintravel.collector.netty.command.data;

import com.xjrh.traintravel.collector.netty.command.BaseCommand;

import java.io.Serializable;

/**
 * 采集数据-内容
 *
 * @author snps
 * @create 2022-02-12 14:34
 * @describe
 **/
public class DataContent extends BaseCommand implements Serializable {

    private static final long serialVersionUID = 8793694026110243193L;


    /**
     * 发送控制
     *      01-有后续帧
     *      02-最后一帧
     */
    private String lastFrameFlag;

    /**
     * 数据长度
     */
    private int length;

    /**
     * 数据
     */
    private String data;


    /*****************************************
     * Getter and Setter
     */
    public String getLastFrameFlag() {
        return lastFrameFlag;
    }

    public void setLastFrameFlag(String lastFrameFlag) {
        this.lastFrameFlag = lastFrameFlag;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }


    @Override
    public String toString() {
        return "DataContent{" +
                "lastFrameFlag='" + lastFrameFlag + '\'' +
                ", length=" + length +
                ", data='" + data + '\'' +
                '}';
    }

}